package Cn.Sarkar.MMS.DataBaseDefinations.Additional

import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.*
import Cn.Sarkar.Entities.Common.Table

object Contacts : Table("Contact") {
    override var Comment: String = "ئالاقە ئۇسۇللىرى"
    val EMail = stringColumn("EMail") default "" comment "ئىلخەت" size 64
    val PhoneNumber = stringColumn("PhoneNumber") default "" comment "تېلېفون نومۇرى" size 11
    val WeChatNumber = stringColumn("WeChatNumber") default "" comment "WeChat Number" size 16
    val QQNumber = stringColumn("QQNumber") default "" comment "QQ Number" size 11

    init {
        index(PhoneNumber, WeChatNumber, QQNumber, EMail) unique true
    }

    override val CATEGORY: Int = 3
}